home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BOBOLI.ZIP / SRC / MGRAPH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-20  |  1.2 KB  |  42 lines

  1. /* Header file for MGRAPH-C */
  2.  
  3. #ifndef __mgraph_gogo
  4. #define __mgraph_gogo
  5.  
  6. typedef unsigned char byte;
  7. typedef unsigned short word;
  8. typedef byte paltype[256][3];
  9. typedef struct {
  10.   short x,y,x2,y2;
  11.   } rect;
  12.  
  13. typedef byte *scrntype;
  14. extern scrntype screen;
  15.  
  16. void gmode(byte mode);
  17. void scrcpy(scrntype src,scrntype dst);
  18. void near_scrcpy(scrntype src,scrntype dst);
  19. void initmg();
  20. void getpal(paltype p);
  21. void loadpal(char *name,paltype p);
  22. void fade_in(byte r, byte g, byte b, paltype p1);
  23. void fade_out(byte r, byte g, byte b, paltype p1);
  24. void waitretrace();
  25. void setcol(byte c, byte r, byte g,byte b);
  26. void setpal(paltype pal);
  27. void line(short x,short y,short x2,short y2,byte col,scrntype scrn);
  28. void scale_xfer(rect s,rect d,scrntype src,scrntype dst);
  29. void clear(byte col,scrntype scrn);
  30. void xfer(short x,short y,short x2,short y2,scrntype src,scrntype dst);
  31. byte loadPCX(char *name,paltype pal,scrntype scrn);
  32. void box(short x,short y,short x2,short y2,byte col, scrntype dst);
  33.  
  34. /* LAMEASS BIOS PRINTING */
  35. void lame_gotoxy(byte x,byte y);
  36. void lame_printchar(char c, byte col);
  37. void lame_print(char *s, byte col);
  38. void lame_printat(byte x,byte y, char *s, byte col);
  39. /* END LAMEASS BIOS PRINTING */
  40.  
  41. #endif
  42.